package com.contactbook.web.client.service;

import java.util.Set;


import com.contactbook.web.client.dto.GroupDTO;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("group")
public interface GroupService extends RemoteService {
	
	public void login(String login, String password);
	public void logout();
	
	public GroupDTO add(GroupDTO group, String login, String password);
	public void update(GroupDTO group, String login, String password);
	public void delete(int groupId, String login, String password);
	
	public GroupDTO getGroupById(int groupId, String login, String password);
	public Set<GroupDTO> getGroups(String login, String password);
	
	public boolean isLogged(String login, String password);
	GroupDTO getGroupByName(String name, String login, String password);
}
